//
//  HttpReportAction.m
//  EPBPro
//
//  Created by wucha on 2018/8/13.
//  Copyright © 2018年 fc. All rights reserved.
//

#import "HttpReportAction.h"

@implementation HttpReportAction

+(void)getAreaMachine:(HTTPResultBlock)block{
    NSString *requestString = [Utils getUrlWithAction:ActionAreaMReport parmasAndKeys:nil];
    [self postRequestWithRequest:requestString withParam:@{} jsonSelector:@selector(getAreaMachineReportResultWithResponseData:) finish:block];

}

+(void)getOrgReport:(HTTPResultBlock)block{
    NSString *requestString = [Utils getUrlWithAction:ActionOrgReport parmasAndKeys:nil];
    [self postRequestWithRequest:requestString withParam:@{} jsonSelector:@selector(getOrgReportResultWithResponseData:) finish:block];
    
}

+(void)getOrgReportAction:(OrgReportActionInfo*)orgReportActionInfo block:(HTTPResultBlock)block{
    NSString *requestString = [Utils getUrlWithAction:ActionOrgDateReport parmasAndKeys:nil];
    NSDictionary *params = [Utils objectToDictionary:orgReportActionInfo];
    [self postRequestWithRequest:requestString withParam:params jsonSelector:@selector(getOrgDateReportResultWithResponseData:) finish:block];

}

@end
